{% extends 'system_template/public/base_main.html' %}
{% block cite %}Redis配置设置{% endblock %}
{% block content %}
    <form class="layui-form">
        {% for foo in form %}
            <div class="layui-form-item">
                <label class="layui-form-label">{{ foo.label }}</label>
                <div class="layui-input-inline">
                    {{ foo }}
                    {% if foo.name=='redis_password' %}
                        <i class="fa fa-eye-slash fa-lg conceal"></i>
                    {% endif %}
                    <div class="layui-form-mid">
                        {% if foo.name=='redis_host' %}
                            Redis 地址:默认本机(127.0.0.1)
                        {% elif foo.name=='redis_port' %}
                            Redis端口  默认:6379
                        {% elif foo.name=='redis_password' %}
                            Redis密码 [没有不填]  默认:空
                        {% endif %}
                    </div>
                </div>
            </div>
        {% endfor %}
        <div class="layui-form-item">
            <div class="layui-input-block">
                <a class="layui-btn" onclick="submit_post()">保存配置</a>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
{% endblock %}
